/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package bill.model.vo;

import java.util.ArrayList;

/**
 *
 * @author Administrator
 */
public class UserDef {

    private String cID;

    private String cClass;

    private String cItemName;

    private ArrayList<UserDefine> userDefines =
            new ArrayList<UserDefine>();

    /**
     * @return the cID
     */
    public String getcID() {
        return cID;
    }

    /**
     * @param cID the cID to set
     */
    public void setcID(String cID) {
        this.cID = cID;
    }

    /**
     * @return the cClass
     */
    public String getcClass() {
        return cClass;
    }

    /**
     * @param cClass the cClass to set
     */
    public void setcClass(String cClass) {
        this.cClass = cClass;
    }

    /**
     * @return the cItemName
     */
    public String getcItemName() {
        return cItemName;
    }

    /**
     * @param cItemName the cItemName to set
     */
    public void setcItemName(String cItemName) {
        this.cItemName = cItemName;
    }

    public ArrayList<UserDefine> getUserDefine(){
        return this.userDefines;
    }

    public void setUserDefine(ArrayList<UserDefine> userDefines){
        this.userDefines = userDefines;
    }

    public void addUserDefine(UserDefine ud){
        userDefines.add(ud);
    }

    public void removeAllUserDefine(){
        userDefines.removeAll(userDefines);
    }

    public int getUserDefineCount(){
        return userDefines.size();
    }

}
